package com.vegetable.modules.entity.finance.po;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.vegetable.common.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * <p>
 * 财务收款管理
 * </p>
 *
 * @author wangruijie
 * @since 2024-04-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="FinancialCollectionPO对象", description="财务收款管理提交PO类")
public class FinancialCollectionPO extends BaseEntity {

    @ApiModelProperty(value = "已回款金额")
    private BigDecimal receivedMoney = BigDecimal.ZERO;

    @ApiModelProperty(value = "收不回")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    private BigDecimal noReturn;

    @ApiModelProperty(value = "待办补")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    private BigDecimal agentDiscount;

    @ApiModelProperty(value = "提成")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    private BigDecimal bonus;

    @ApiModelProperty(value = "备注")
    private String remark;

}
